//
//  HttpManager.h
//  LCExpress
//
//  Created by mac1 on 15/10/13.
//  Copyright © 2015年 D0. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AFNetworking.h"

typedef void (^blockData)(id data);

@interface HttpManager : AFHTTPRequestOperationManager

//经过封装的GET方法
-( void )getWithUrl:(NSString*)url withDataBlock:(blockData)dataBlock;

//经过封装的POST方法
-(void)postWithUrl:(NSString*)url withParameters:(NSDictionary*)dic withDataBlock:(blockData)dataBlock;

-(HttpManager*)initWithSecurity;

@end
